
import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManageResponse/ClientPayPactManageResponseApprove/search`,
}

export const detailsApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManageResponse/ClientPayPactManageResponseApprove/detailTabSearch`,
}

// 明细查询
export function detailsQuery(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManageResponse/ClientPayPactManageResponseApprove/detail?id=${data.id}`,
    method: 'get'
  })
}

// 审核
export function approve(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManageResponse/ClientPayPactManageResponseApprove/approve`,
    method: 'post',
    data
  })
}

// 拒绝
export function reject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManageResponse/ClientPayPactManageResponseApprove/reject`,
    method: 'post',
    data
  })
}